package com.ipc.admin.service.xxloki.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ipc.admin.service.xxloki.service.ParkingService;
import com.ipc.common.pojo.bo.ParkingAddBo;
import com.ipc.core.dao.xxloki.ParkingDao;
import com.ipc.core.entity.xxloki.Parking;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 停车位管理;(Parking)表服务实现类
 *
 * @author makejava
 * @since 2023-04-28 11:39:59
 */
@Service
public class ParkingServiceImpl extends ServiceImpl<ParkingDao, Parking> implements ParkingService {

    @Resource
    private ParkingDao parkingDao;
    @Override
    public boolean save(ParkingAddBo entity) {
        if (parkingDao.save(entity) > 0){
            return true;
        }else {
            return false;
        }
    }
}

